# -*- coding: utf-8 -*-
# Author: xiantingDeng
# File: handler.py
# Time: 10:19


from common.element.element import WebTools
from common.utils.read_util import OperationYaml

class LoginHandler(WebTools):
    def __init__(self,driver,log):
        super().__init__(driver,log)
        self.page = OperationYaml("login.yaml").get_yaml()

    def get_haibao_background(self):
        return self.get_element_wait(self.page.get("haibao_background"))

    def get_user_input(self):
        return self.get_element_wait(self.page.get("user_input"))

    def get_password_input(self):
        return self.get_element_wait(self.page.get("password_input"))

    def get_login_but(self):
        return self.get_element_wait(self.page.get("login_but"))

    def get_name_text(self):
        return self.get_element_wait(self.page.get("name_text"))